package com.hykc.auth.common.threadlocals;

public class UserHolder {
    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();

    public static void set(Integer userId){
        threadLocal.set(userId);
    }

    public static Integer get(){
       return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }
}
